package online.acutuator.info;

import org.springframework.boot.actuate.info.Info;
import org.springframework.boot.actuate.info.InfoContributor;
import org.springframework.stereotype.Component;

import java.util.Collections;

/**
 * @Auther: 狼芒
 * @Date: 2021/9/15 22:39
 * @Descrintion: 自定义自己的info
 * @version: 1.0
 */
@Component
public class ApplicationInfoContributor implements InfoContributor {
    @Override
    public void contribute(Info.Builder builder) {
        builder.withDetail("name", "张三").withDetails(Collections.singletonMap("word", "666"));
    }
}
